package com.yj_app.qualitytest.info.up;

import android.text.TextUtils;

import org.litepal.crud.LitePalSupport;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class MsgBean<T> extends LitePalSupport implements Serializable {

	private Integer method;//方法名

	private String msg;//返回消息

	private boolean success;//成功标记

	private QualityVO wsvo;

	private List<QualityVO> list;

	private String code;
	private String psw;

	private T mapList;

	private String pk_org;
	private String guid;
	private String nickname;

	public String getGuid() {
		return TextUtils.isEmpty(guid) ? "" : guid;
	}

	public void setGuid(String guid) {
		this.guid = (TextUtils.isEmpty(guid) ? "" : guid);
	}

	public String getNickname() {
		return TextUtils.isEmpty(nickname) ? "" : nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = (TextUtils.isEmpty(nickname) ? "" : nickname);
	}

	public T getMapList() {
		return mapList;
	}

	public void setMapList(T mapList) {
		this.mapList = mapList;
	}

	public String getPk_org() {
		return TextUtils.isEmpty(pk_org) ? "" : pk_org;
	}

	public void setPk_org(String pk_org) {
		this.pk_org = (TextUtils.isEmpty(pk_org) ? "" : pk_org);
	}

	public Integer getMethod() {
		return method;
	}

	public void setMethod(Integer method) {
		this.method = method;
	}

	public String getMsg() {
		return TextUtils.isEmpty(msg) ? "" : msg;
	}

	public void setMsg(String msg) {
		this.msg = (TextUtils.isEmpty(msg) ? "" : msg);
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public QualityVO getWsvo() {
		return wsvo;
	}

	public void setWsvo(QualityVO wsvo) {
		this.wsvo = wsvo;
	}

	public List<QualityVO> getList() {
		if (list == null) {
			return new ArrayList<>();
		}
		return list;
	}

	public void setList(List<QualityVO> list) {
		this.list = list;
	}

	public String getCode() {
		return TextUtils.isEmpty(code) ? "" : code;
	}

	public void setCode(String code) {
		this.code = (TextUtils.isEmpty(code) ? "" : code);
	}

	public String getPsw() {
		return TextUtils.isEmpty(psw) ? "" : psw;
	}

	public void setPsw(String psw) {
		this.psw = (TextUtils.isEmpty(psw) ? "" : psw);
	}
}
